import { commonRequest } from '@/api/commonHttp';

// 售价管理 - 售价变价记录查询 - 列表查询（历史）
export const searchHistoryService = (data, loadingFn) => commonRequest({
  url: '/sysback/salePrice/changeLog/search',
  type: 'post',
  data,
  loadingFn
});

// 售价管理 - 售价变价记录查询 - 列表查询（当前）
export const searchService = (data, loadingFn) => commonRequest({
  url: '/sysback/salePrice/secondPhase/changeLog/search',
  type: 'post',
  data,
  loadingFn
});

// 售价管理 - 商品下拉集合 - 列表查询
export const searchProductNameDropDownListService = (data, loadingFn) => commonRequest({
  url: '/sysback/finish/spu/mgr/searchProductNameDropDownList',
  type: 'get',
  data,
  loadingFn
});

// 售价管理 - 线索潜在商品售价变价记录 - 列表查询
export const hisListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/potential/saleprice/hisList',
  type: 'post',
  data,
  loadingFn
});
